import Layout from '@/layout'

const hidden = true
const affix = true
const noCache = true

export default [
  {
    path: '/supply-shop',
    component: Layout,
    redirect: { name: 'SupplyShopPublish' },
    meta: { title: '供需超市', icon: 'component' },
    children: [
      {
        path: 'publish',
        component: (resolve) => require(['@/views/supply-shop/publish/index'], resolve),
        name: 'SupplyShopPublish',
        meta: { title: '供需发布' },
      },
      {
        path: 'publish/add',
        component: (resolve) => require(['@/views/supply-shop/publish/add/index'], resolve),
        name: 'SupplyShopPublishAdd',
        meta: { title: '供需发布-新增', hidden, activeMenu: '/supply-shop/publish' },
      },
      {
        path: 'publish/update/:id',
        component: (resolve) => require(['@/views/supply-shop/publish/update/index'], resolve),
        name: 'SupplyShopPublishUpdate',
        meta: { title: '供需发布-修改', hidden, activeMenu: '/supply-shop/publish' },
      },
      {
        path: 'publish/shelf/:id',
        component: (resolve) => require(['@/views/supply-shop/publish/shelf/index'], resolve),
        name: 'SupplyShopPublishShelf',
        meta: { title: '供需发布-上架', hidden, activeMenu: '/supply-shop/publish' },
      },
      {
        path: 'review',
        component: (resolve) => require(['@/views/supply-shop/review/index'], resolve),
        name: 'SupplyShopReview',
        meta: { title: '发布审核' },
      },
      {
        path: 'review/add',
        component: (resolve) => require(['@/views/supply-shop/review/add/index'], resolve),
        name: 'SupplyShopReviewAdd',
        meta: { title: '发布审核-新增', hidden, activeMenu: '/supply-shop/review' },
      },
      {
        path: 'review/detail/:id',
        component: (resolve) => require(['@/views/supply-shop/review/detail/index'], resolve),
        name: 'SupplyShopReviewDetail',
        meta: { title: '发布审核-详情', hidden, activeMenu: '/supply-shop/review' },
      },
      {
        path: 'overview',
        component: (resolve) => require(['@/views/supply-shop/overview/index'], resolve),
        name: 'SupplyShopOverview',
        meta: { title: '供需一览' },
      },
    ],
  },
]

